/******************************************************************************
* ++
* Author: BaoTD1
* Module Name : CBoardCell.h
*
* Description : Declares the CBoard Cell Windows Form
*
*
* Mod. History :	03/Dec/2012		 - BaoTD1
*                             File first created
*                             CR# PROJECT
*
*
* --
******************************************************************************/
#pragma once
#ifndef CBoardCell_H
#define CBoardCell_H
#include "stdafx.h"
//#include "global.h"
using namespace Gdiplus;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Structure Name:	TAG_COLOR_TABLE_ENTRY
// Description:		To hold the colors and their names
// Explanation:		
// Attention:		
// End:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
typedef struct ColorTableEntry_t
{
	COLORREF	crColour;
} COLOR_TABLE_ENTRY_t;

//COLOR_TABLE_ENTRY_t g_crColours[] =
//{
//	{ DEF_COLOR_BLACK			},
//	{ DEF_COLOR_BROWN			},
//	{ DEF_COLOR_OLIVE			},
//	{ DEF_COLOR_BRIGHT_GREEN	},
//	{ DEF_COLOR_DARK_GREEN 		}
//};
class CBoardCell : public CWnd
{
private:
	int		m_nCellID;		// Cell ID
	Color	m_CellColor;	// Cell Color
	int		m_nWidth;		// Cell width
	int		m_nHeight;		// Cell height
protected:
	RECT	m_ClientRect;	// Client rect of Board Cell

public:
	CBoardCell(void);
	CBoardCell(int nCellID, Color CellColor, int nWidth, int nHeight);
	~CBoardCell(void);

	int getCellID();
	int getWidth();
	int getHeight();

//	E_BUTTON_STATUS m_ButtonStatus_e;

	virtual BOOL CreateBoardCell( const RECT& rect, CWnd* pParentWnd ) = 0;

	DECLARE_MESSAGE_MAP()
};

#endif
